<html>
<? $address = $this->url(); ?>
  <head>
      <title><?= APP_NAME ?></title>
        <meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" /> 
        <link rel='stylesheet' href='/css/yahoo.css' type='text/css'/>
        <link rel='stylesheet' href='/css/main.css' type='text/css'/>
      <script src="/scripts/bus.js"></script>
      <script src="/scripts/xml.js"></script>
      <script src="/scripts/connect.js"></script>
  </head>

  <body>

<table cellspacing="0" cellpadding="0" width="100%"><tr><td>
<div id="topnav">
  <div id="navcontainer">
<table width="100%"><tr><td nowrap="nowrap">
    <ul id="pimtabs">
      <li  
<? if(strpos($address, 'favorites')===false && strpos($address, 'media')===false): ?>
class="selected"
<? endif ?>
><a href="/">Server</a></li> 
      <li 
<? if(strpos($address, 'favorites')!==false): ?>
class="selected"
<? endif ?>
><a href="/favorites/home">Bookmarks</a></li>  <li 
<? if(strpos($address, 'media')!==false): ?>
class="selected"
<? endif ?>
><a href="/media/index">Media</a></li> 
    </ul> 
</td>

<?
if (isset($this->exectime)) {
    echo "<td> Exec time: {$this->exectime}s </td>";
}

?>


<td align="right" >


<?= $this->headerText ?>
</td></tr></table>

  </div>
</div>
</td> 

</tr></table>
        
<?

    if (is_array ($this->Persisted))  
        echo $this->partial( "persist.phtml", array("Persisted"=>$this->Persisted)); 
?>

      <?= $this->layout()->content; ?>
  </body>

</html> 




